package common;

import java.util.ArrayList;

/**
 * 节点
 */
public class GrapNode {
    public int value; // 数据项
    public int in; // 入度
    public int out; //出度
    public ArrayList<GrapNode> nexts; // 发散出去的边
    public ArrayList<Edge> edges; //

    public GrapNode(int val){
        this.value = val;
        in = 0;
        out = 0;
        nexts = new ArrayList<>();
        edges = new ArrayList<>();
    }
}
